import Vue from 'vue'
import VueRouter from 'vue-router'
import index from './components/index.vue'
import index2 from './components/index2.vue'
import index3 from './components/index3.vue'
import index4 from './components/index4.vue'
import index5 from './components/index5.vue'
import index6 from './components/index6.vue'
import publicclass from './components/index7.vue'
Vue.use(VueRouter)
export default new VueRouter({
    routes: [{
            path: '/',
            name: 'index',
            component: index
        },
        {
            path: '/school/:id',
            name: 'school',
            component: index2,
            props: true
        },

        {
            path: '/news',
            name: 'news',
            component: index3
        },
        {
            path: '/news/:id',
            name: 'newsinfo',
            component: index4,
            props: true
        },
        {
            path: '/info',
            name: '联盟概况',
            component: index5
        },
        {
            path: '/coursehome/:id',
            name: '课程主页',
            component: index6,
            props: true
        },
        {
            path: '/publicclass',
            name: '共享课程',
            component: publicclass,
        },
    ]
})